import React from 'react'
import Child from './child'

const obj1 = { id: 1 }
const obj2 = { id: 2 }

const Obj1Context = React.createContext(obj1)
const Obj2Context = React.createContext(obj2)

const ContextTest = () => {
	return (
		<Obj1Context.Provider value={obj1}>
			<Obj2Context.Provider value={obj2}>
				<Child />
			</Obj2Context.Provider>
		</Obj1Context.Provider>
	)
}

export { Obj1Context, Obj2Context }

export default ContextTest
